const Consumpt = {
    state: {
        Inputinventory: {},
        Rawinventory: {},
        digitalFlopData:[
            {
                title: '订单数量',
                number: {
                  number: [0],
                  content: '{nt}',
                  textAlign: 'right',
                  style: {
                    fill: '#4d99fc',
                    fontWeight: 'bold'
                  }
                },
                unit: '单'
              },
              {
                title: '加工厂数量',
                number: {
                  number: [0],
                  content: '{nt}',
                  textAlign: 'right',
                  style: {
                    fill: '#f46827',
                    fontWeight: 'bold'
                  }
                },
                unit: '个'
              },
              {
                title: '加工厂出库量',
                number: {
                  number: [0],
                  content: '{nt}',
                  textAlign: 'right',
                  style: {
                    fill: '#40faee',
                    fontWeight: 'bold'
                  }
                },
                unit: '件'
              },
              {
                title: '养殖基地数量',
                number: {
                  number: [0],
                  content: '{nt}',
                  textAlign: 'right',
                  style: {
                    fill: '#40faee',
                    fontWeight: 'bold'
                  }
                },
                unit: '个'
              },
              {
                title: '养殖产品出库',
                number: {
                  number: [0],
                  content: '{nt}',
                  textAlign: 'right',
                  style: {
                    fill: '#40faee',
                    fontWeight: 'bold'
                  }
                },
                unit: '件'
              }
        ],
        factorycount:0,
        OrdersCount: 0,
        allCount:0,
        farmingBasecount: 0,
        farmingbase: {
          data:[]
        },
        ids: [],
        farmingproduct: 0,
        config: {
          header: ['类型', '投入品名称','数量', '供应商名称'],
          data: [],
          index: true,
          carousel: 'page',
          columnWidth: [50, 60, 120, 100, 180],
          align: ['center'],
          rowNum: 7,
          headerBGC: 'rgba(6, 30, 93, 0.5)',
          headerHeight: 45,
          oddRowBGC: 'rgba(0, 44, 81, 0.8)',
          evenRowBGC: 'rgba(10, 29, 50, 0.8)'
        },
        meterial: {
          header: ['创建时间', '原辅料名称','单价', '数量'],
          data: [],
          index: true,
          carousel: 'page',
          columnWidth: [50, 160, 120, 100, 80],
          align: ['center'],
          rowNum: 7,
          headerBGC: 'rgba(6, 30, 93, 0.5)',
          headerHeight: 45,
          oddRowBGC: 'rgba(0, 44, 81, 0.8)',
          evenRowBGC: 'rgba(10, 29, 50, 0.8)'
        },
        factorys:[]
    },

    mutations: {
        setInputinventory(state,e) {
            state.Inputinventory = e
        },
        setRawinventory(state,e) {
            state.Rawinventory = e
        },
        setfactorycount(state,e) {
            state.factorycount = e
        },
        setOrdersCount(state,e) {
            state.OrdersCount = e
        },
        setallCount(state,e) {
            state.allCount = e
        },
        setfarmingBasecount(state,e) {
          state.farmingBasecount = e
        },
        setfarmingbase(state,e) {
          state.farmingbase.data = e
        },
        setids(state,e) {
          state.ids = e
        },
        setfarmingproduct(state,e) {
          state.farmingproduct = e
        },
        setsupplyin(state,e) {
          state.config.data = e
        },
        setmeterial(state,e) {
          state.meterial.data = e
        },
        setfactorys(state,e) {
          state.factorys = e
        }
    },

    actions: {
        setInputinventory ({commit}, e) {
            commit('setInputinventory', e)
        },
        setRawinventory ({commit}, e) {
            commit('setRawinventory', e)
        },
        setfactorycount ({commit}, e) {
            commit('setfactorycount', e)
        },
        setOrdersCount ({commit}, e) {
            commit('setOrdersCount', e)
        },
        setallCount ({commit}, e) {
            commit('setallCount', e)
        },
        setfarmingBasecount ({commit}, e) {
          commit('setfarmingBasecount',e)
        },
        setfarmingbase ({commit}, e) {
          commit('setfarmingbase', e)
        },
        setids ({commit}, e) {
          commit('setids', e)
        },
        setfarmingproduct ({commit}, e) {
          commit('setfarmingproduct', e)
        },
        setsupplyin ({commit}, e) {
          commit('setsupplyin', e)
        },
        setmeterial({commit}, e) {
          commit('setmeterial', e)
        },
        setfactorys({commit}, e) {
          commit('setfactorys', e)
        }
    }
}

export default Consumpt